/**
 * Description:
 *
 * @author houkepan
 * @date 2018/12/28 22:57
 */
public class CpuFactory {
    public static Cpu createCpu(int type) {
        Cpu cpu = null;
        if (type == 1) {
            cpu = new IntelCpu(755);
        } else if (type == 2) {
            cpu = new AmdCpu(938);
        }

        return cpu;
    }
}
